package com.gecba.system.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ChenBo
 * @className SwaggerProperties
 * @date 2021/7/19
 */
@ConfigurationProperties(prefix = "swagger")
@Data
public class SwaggerProperties {

    private String title="gecba-system";

    private String description="Api Documentation";

    private String version="1.0";

    private String termsOfServiceUrl= "http://system.gecba.com";

    private String group="gecba v1.0";

    private String group2="gecba2 v1.0";

    private SwaggerProperties.Contact contact = new SwaggerProperties.Contact();

    private SwaggerProperties.Ignored ignored = new SwaggerProperties.Ignored();


    @Data
    public class Contact{
        private String name="gecba";

        private String url="http://www.gecba.com";

        private String email="hopetolight@163.com";
    }

    @Data
    public class Ignored{
        private List<String> urls = new ArrayList<>();

        private List<String> limitUrls = new ArrayList<>();
    }
}
